package com.seele.tigerwallet.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;


@DatabaseTable(tableName = "t_message")
public class MessageModel implements Serializable {

    @DatabaseField(columnName = "title")
    public String title;

    @DatabaseField(id = true, canBeNull = false, columnName = "msgid")
    public long msgid;

    @DatabaseField(columnName = "content")
    public String content;

    @DatabaseField(columnName = "confirmtime")
    public String confirmtime;

    @DatabaseField(columnName = "tsid")
    public long tsid;


    @DatabaseField(columnName = "tshash")
    public String tshash;

    //"0 未读   1 已读
    @DatabaseField(columnName = "status")
    public int status;

    public String toString() {
        return String.format("msgid:%s, tshash:%s, status:%s", msgid, tshash, status);
    }
}
